package com.qa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qa.IDao.qpy_configinfoMapper;
import com.qa.IDao.qpy_positioninfoMapper;
import com.qa.pojo.SchoolAndPosition;
import com.qa.pojo.SchoolMacInfo;
import com.qa.pojo.qpy_configinfo;
import com.qa.pojo.qpy_positioninfo;
import com.qa.service.IForPushService;

@Service("forPushService")
public class IForPushImpl implements IForPushService {
	@Resource
	private qpy_positioninfoMapper pushDao;
	@Resource
	private qpy_configinfoMapper qpyconfigDao;

	public List<String> getschools() {
		// TODO Auto-generated method stub
		return this.pushDao.getschools();
	}

	public List<SchoolAndPosition> schoolAndPositions() {
		// TODO Auto-generated method stub
		return this.pushDao.getSchoolAndPositions();
	}

	@Override
	public List<qpy_positioninfo> selectCameralInfo(String schoolname,
			String position, List<Integer> examineGroup, int caseAscr,
			String selectFunction, String selectKeyword, int usersid) {
		// TODO Auto-generated method stub
		return this.pushDao.selectCameralInfo(schoolname, position,
				examineGroup, caseAscr, selectFunction, selectKeyword, usersid);
	}

	@Override
	public int changeCameralInfoSetState(int positionid, int state, int setstate) {
		// TODO Auto-generated method stub
		return this.pushDao.changeCameralInfoSetState(positionid, state,
				setstate);
	}

	@Override
	public int editMacInfo(int positionid, String schoolname, String position,
			String ipInfo, int setStateInfo, String macInfo, String remark) {
		// TODO Auto-generated method stub
		return this.pushDao.editMacInfo(positionid, schoolname, position,
				ipInfo, setStateInfo, macInfo, remark);
	}

	@Override
	public int deleteMacInfo(List<Integer> signGroupList) {
		// TODO Auto-generated method stub
		return this.pushDao.deleteMacInfo(signGroupList);
	}

	@Override
	public qpy_configinfo selectQpyConfig() {
		// TODO Auto-generated method stub
		return this.qpyconfigDao.selectByPrimaryKey();
	}

	@Override
	public int insertPositionInfo(String schoolname, String position,
			String ipInfo, String macInfo, int setState, String remark,
			String pushUrl, String pullUrl, String name, String cid) {
		// TODO Auto-generated method stub
		return this.pushDao.insertPositionInfo(schoolname, position, ipInfo,
				macInfo, setState, remark, pushUrl, pullUrl, name, cid);
	}

	@Override
	public String selectCameralCid(Integer integer) {
		// TODO Auto-generated method stub
		return this.pushDao.selectCameralCid(integer);
	}

	@Override
	public List<String> selectCameralCids() {
		// TODO Auto-generated method stub
		return this.pushDao.selectCameralCids();
	}

	@Override
	public int updateCameralStatus(String cid, String status) {
		// TODO Auto-generated method stub
		return this.pushDao.updateCameralStatus(cid, status);
	}

	@Override
	public List<SchoolMacInfo> selectCameralInfoFromSchoolname(String schoolname) {
		// TODO Auto-generated method stub
		return this.pushDao.selectCameralInfoFromSchoolname(schoolname);
	}

}
